@charset "utf-8";
/* CSS Document */

.testimonial-section {
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    max-width: 1200px; /* Limit the maximum width for better centering */
    margin: 0 auto; /* Center the section */
    overflow: hidden; /* Prevent content overflow */
}

.testimonial-section h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Increase spacing for better layout */
    justify-content: center; /* Center items for all screen sizes */
}

.testimonial {
    flex: 0 1 calc(33.333% - 20px); /* Three items per row with spacing */
    max-width: 300px; /* Prevent excessive width */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
    transform: scale(1.05);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
}

.testimonial h4 {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 992px) {
    .testimonial {
        flex: 0 1 calc(50% - 20px); /* Two items per row */
    }
}

@media (max-width: 768px) {
    .testimonial {
        flex: 0 1 calc(100% - 20px); /* Full width for each item */
    }

    .testimonial-section h3 {
        font-size: 1.2rem;
    }

    .testimonial p {
        font-size: 0.9rem;
    }

    .testimonial h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        gap: 15px; /* Adjust spacing for small screens */
    }

    .testimonial {
        padding: 15px;
    }
}
